import requests

res = requests.get(
    url='https://pixabay.com/videos/search/?order=ec&pagi=4',
    headers={
        'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
        'Referer':'https://pixabay.com/videos/search/?order=ec&pagi=2'
    }
)

print(res.status_code,res.text)